function e2eelogin(id) {
	var rsa = getRSA();
	var aes = new AES(128);

	var input_pass = document.getElementById(id);

	var encryptedPass = aes.encrypt(input_pass.value);
	var encryptedAesKey = rsa.encrypt(aes.key);

	var result = encryptedAesKey + '|' + encryptedPass;

	input_pass.value = result;
	return true;
}